@echo off

set _JHI=D:\_USB\Program\java\jh2.0\javahelp\bin\jhindexer.bat

if exist "!-1_Update_helpset_search.cmd" goto ok
echo Error - FILE NOT FOUND: "!-1_Update_helpset_search.cmd"
goto end
:ok
echo ------------------------
echo Making javaHelp indexes
echo ------------------------
cd src\javahelp
echo current directory:
cd
if exist "helpset.hs" goto cont_hs
echo .
echo .
echo ************************************************
echo !!    Error - FILE NOT FOUND: "helpset.hs"    !?
echo ************************************************
echo .
echo .
goto end
:cont_hs
echo.
echo going to execute:
echo call %_JHI% -verbose ..\html
echo.
pause
echo please wait...
call %_JHI% -verbose ..\html  >..\..\indexer_output-1.log
echo.
echo Finished:  javaHelp indexes have been updated.
:end
echo.
echo All done
@pause
